#include "j_gui_lib.hpp"
#include "point.hpp"
namespace just
{
    j_applet::j_applet(point position, uint16_t width, uint16_t height, void (*event_func)(event)):
        m_position(position), m_width(width), m_height(height)
    {

    }

    j_applet::~j_applet()
    {

    }

    void j_applet::init(Window root_window, Display *display)
    {
        m_root_window = root_window;
        m_display = display;
    }

    point j_applet::get_position()
    {
        return m_position;
    }

    void j_applet::set_position(point position)
    {
        m_position = position;
    }  

    Display j_applet::get_display()
    {
        return m_display;
    }


}